<?php
require_once('relatedfiles_model.php');

class RelatedDocuments_model extends RelatedFiles_model{
	function RelatedDocuments_model(){
		parent::RelatedFiles_model();
		$this->ci =& get_instance();
		$this->ci->load->model('Documents_model');
		$this->setRelationalFields('press_id', 'document_id');
		$this->setManyModel($this->ci->Documents_model);
		$this->setFileLocationField('document_path');
		//$this->setSelectField('is_selected');
		$this->setOptionField('document_path');
	}
}
?>